# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0806-08.py
    ======================
    @descript: 装饰器
    @copyright:nnz
    @author:dln
    @date: 2021/8/9 14:58
    @version:v1.0
'''
import time
def fun_01():
    print('函数fun_01正在执行中')
    time.sleep(1)
    pass
def fun_02(p_f):          #函数的形参为函数
    def fun_inner():
        print('start:',time.time())
        p_f()
        print('end',time.time())
        pass
    return fun_inner       #返回值为内部函数
fun_01=fun_02(fun_01)
fun_01()